package com.ruicar.afs.cloud.product.feign;

import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.product.dto.LprQueryDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

/**
 * @description: 请求产品服务
 * @author: sijun.yu
 * @date: 2020/6/4 9:10
 */
@FeignClient(name = "product", url = "${com.greatwall.services.product-service.url}")
public interface ProductCommonFeign {

    @ApiOperation("查询lpr利率")
    @PostMapping(value = "/lpr/getLprNew")
    IResponse getLprNew(@RequestBody LprQueryDto lprQueryDto, @RequestHeader Map<String, String> headers);

}
